package com.qzxy.premiumhotelsystem.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * ClassName: OrderDTO
 * Package: com.qzxy.premiumhotelsystem.domain.dto
 * Description:
 *
 * @Author Qwh
 * @Create 2024/9/18 17:16
 * @Version 1.0
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Schema(name = "OrderDTO")
public class OrderDTO {


    @NotNull(message = "roomId不能为空")
    @Schema(description = "房间Id",required = true)
    private Integer roomId;     // 房间ID

    @Schema(description = "用户选择使用的vip类型")
    private Integer vipTypeId; // 选择的vip类型

    @NotBlank(message = "checkInTime不能为空")
    @Schema(description = "入住时间 (yyyy-MM-dd HH:mm:ss格式)")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String checkInTime; // 入住时间
}
